import {defineStore} from 'pinia'
import {ref, computed} from 'vue'

const storeSetup = () => {
  /* 定义数据--------------------------------------------------------------------- */
  // linkPmInfo
  const linkPmInfo = ref({
    pmId: ''
  })

  // 是否跳转过LinkPm页面
  const isNaviToLinkPmPage = ref(true)

  /* 定义函数--------------------------------------------------------------------- */

  // 返回参数
  return {
    linkPmInfo,
    isNaviToLinkPmPage
  }
}

// 导出Store
export const useLinkPmStore = defineStore('linkPm', storeSetup, {persist: false})
